package com.gqj.elec.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;

/**
 * 物资报警详情对象 elec_warning_detail
 * 
 * @author lxq
 * @date 2023-09-02
 */
public class ElecWarningDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long warningDetailId;

    /** 报警ID */
    @Excel(name = "报警ID")
    private Long warningId;

    /** 物资ID */
    @Excel(name = "物资ID")
    private Long materialId;

    /** 出库重量 */
    @Excel(name = "出库重量")
    private BigDecimal outWeight;

    public void setWarningDetailId(Long warningDetailId) 
    {
        this.warningDetailId = warningDetailId;
    }

    public Long getWarningDetailId() 
    {
        return warningDetailId;
    }
    public void setWarningId(Long warningId) 
    {
        this.warningId = warningId;
    }

    public Long getWarningId() 
    {
        return warningId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setOutWeight(BigDecimal outWeight) 
    {
        this.outWeight = outWeight;
    }

    public BigDecimal getOutWeight() 
    {
        return outWeight;
    }

    /**
     * 物资编码
     */
    @Excel(name = "物资编码")
    private String materialCode;

    /**
     * 物资名称
     */
    @Excel(name = "物资名称")
    private String materialName;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String specifications;

    /**
     * 分类ID
     */
    @Excel(name = "分类ID")
    private Long sortId;

    /**
     * 分类
     */
    @Excel(name = "分类")
    private String sortName;

    /**
     * 库房ID
     */
    @Excel(name = "库房ID")
    private Long warehouseId;

    /**
     * 库房
     */
    @Excel(name = "库房")
    private String warehouseName;

    /**
     * 柜架ID
     */
    @Excel(name = "柜架ID")
    private Long cabinetId;

    /**
     * 柜架
     */
    @Excel(name = "柜架")
    private String cabinetName;

    /**
     * 层位ID
     */
    @Excel(name = "层位ID")
    private Long gridId;

    /**
     * 层位
     */
    @Excel(name = "层位")
    private String gridName;

    /**
     * 单位ID
     */
    @Excel(name = "单位ID")
    private Long unitId;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unitName;

    /**
     * 供应商ID
     */
    @Excel(name = "供应商ID")
    private Long providerId;

    /**
     * 供应商
     */
    @Excel(name = "供应商")
    private String providerName;

    /** 物资类别 */
    private String materialCategory;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public Long getSortId() {
        return sortId;
    }

    public void setSortId(Long sortId) {
        this.sortId = sortId;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public Long getCabinetId() {
        return cabinetId;
    }

    public void setCabinetId(Long cabinetId) {
        this.cabinetId = cabinetId;
    }

    public String getCabinetName() {
        return cabinetName;
    }

    public void setCabinetName(String cabinetName) {
        this.cabinetName = cabinetName;
    }

    public Long getGridId() {
        return gridId;
    }

    public void setGridId(Long gridId) {
        this.gridId = gridId;
    }

    public String getGridName() {
        return gridName;
    }

    public void setGridName(String gridName) {
        this.gridName = gridName;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Long getProviderId() {
        return providerId;
    }

    public void setProviderId(Long providerId) {
        this.providerId = providerId;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public String getMaterialCategory() {
        return materialCategory;
    }

    public void setMaterialCategory(String materialCategory) {
        this.materialCategory = materialCategory;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warningDetailId", getWarningDetailId())
            .append("warningId", getWarningId())
            .append("materialId", getMaterialId())
            .append("outWeight", getOutWeight())
            .toString();
    }
}
